//
//  HMHomeViewModel.h
//  HowToDo
//
//  Created by 胡坤 on 2017/1/3.
//  Copyright © 2017年 KY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HTDCarousel.h"
#import "HMListenAnyTimeResModel.h"
#import "HTDSpecialColumn.h"
#import "HTDEveryDayBook.h"
#import "HTDGuessLike.h"
#import "HTDRankData.h"
#import "HMListenAnyTimeResModel.h"

typedef NS_ENUM(NSInteger ,sectionName)
{
    HMHomeFreeAudioSection,//天天涨姿势
    HMHomeSpecialColumnSection,//行业达人
    HMHomeEveryDayBookSection,//今今乐道
    HMHomeGuessLikeSection,//猜你喜欢
    HMHomeRankDataSection,//热门排行
    HMHomeRecommendSection,//热门推荐
    HMHomeGoldStenceSection//金句
};


@interface HMHomeViewModel : NSObject
/**
 解析后的轮播图数组
 */
@property(nonatomic,strong)NSArray<HTDCarousel*> *homeCarousel;
/**
 解析完成后的首页所有数据的数组
 */
@property(nonatomic,strong)NSArray *homeData;
/**
 展示选项名称的数据
 */
@property(nonatomic,strong)NSArray *classifyList;

-(void)loadHomeDataFinished:(void(^)(NSError *error))finished;
//设置不同组cell的个数
-(NSInteger)numberOfItemsHomeTabWithSection:(NSInteger)section DataList:(NSArray*)homeList;

//根据不同的组设置不同的重用标识
-(NSString*)cellIdentifierWithSection:(NSInteger)section;
//根据不同组获取不同的组头信息
-(NSDictionary*)channelSectionInfoWithSectionName:(sectionName)section;
@end
